home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / amigalib / newlist.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-09  |  549 b   |  31 lines

  1.  
  2. /*
  3.  *  NewList.C
  4.  *
  5.  *
  6.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  7.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  8.  *    DICE-LICENSE.TXT.
  9.  *
  10.  */
  11.  
  12. #include <exec/types.h>
  13. #include <exec/lists.h>
  14. #ifdef INCLUDE_VERSION        /*    2.0 */
  15. #include <clib/alib_protos.h>
  16. #endif
  17.  
  18. #ifndef HYPER
  19. #define HYPER
  20. #endif
  21.  
  22. void
  23. HYPER ## NewList(list)
  24. struct List *list;
  25. {
  26.     list->lh_Head     = (struct Node *)&list->lh_Tail;
  27.     list->lh_Tail     = NULL;
  28.     list->lh_TailPred = (struct Node *)&list->lh_Head;
  29. }
  30.  
  31.